package jna;

import java.nio.IntBuffer;

public class TestMain {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		int[] tab = {3,2,3,4};
		int[] tab2 = {3,2,3,5};
		int[] matrice = {3,2,3,4,3,2,3,5};
		double result = TestLibrary.INSTANCE.distance(IntBuffer.wrap(tab), IntBuffer.wrap(tab2), 2d);
//		System.out.println(result);
		
		int result2 = TestLibrary.INSTANCE.unppv(IntBuffer.wrap(tab), IntBuffer.wrap(matrice), 4, 2);
		for(int i = result2; i < result2+4; i++)
		{
			System.out.println(matrice[i]);
		}
	}
}
